package com.scorpio.basic.mapper;


import com.scorpio.common.dao.BaseDao;
import com.scorpio.basic.domain.OssDatumEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 数据资源Mapper接口
 *
 * @author scorpio
 * @date 2021-10-29
 */
@Mapper
public interface OssDatumMapper extends BaseDao<OssDatumEntity> {

    String[] selectImages(@Param("tableName") String tableName, @Param("tableId") Long tableId);

    List<OssDatumEntity> selectByTableList(@Param("tableName") String tableName, @Param("tableId") Long tableId);

    int updateDelete(@Param("id") Long id);

    int updateDeleteNotContain(@Param("tableName") String tableName, @Param("tableId") Long tableId, @Param("ids") List<Long> ids);

    int updateSort(@Param("id") Long id, @Param("sort") Integer sort);
}
